<?php

//包含头部文件
include './head.php';

//获取用于发帖的版块cid
$postCid = $_GET['cid'];
// var_dump($postCid);

//通过cid 查出当前的版块名,及其父版块名
$resCategory = mySelect($link , '*' , DB_TABLE_CG ,"where cid=$postCid");
$parentId  = $resCategory[0]['parentid'];
$sonName  = $resCategory[0]['classname'];
//查询父级版块
$resParent = mySelect($link , '*' , DB_TABLE_CG ,"where cid=$parentId");
$parentName  = $resParent[0]['classname'];
// var_dump($resCategory);
// var_dump($parentId);
// var_dump($resParent);


//打包数组
$arr = compact('webSite', 'docRoot','postCid' , 'sonName' , 'parentName');
//发送
display('post.html' , $arr);

//包含尾部文件
include './tail.php';